
#ifndef MODEL_MEMBER_H
#define MODEL_MEMBER_H

#include "mvc/mymodel.h"
#include "core/point.h"

#include "gui/model_bridge.h"

class ModelMember: public MyModel {
  private:
    Point point1, point2;

  public:

    Point getPoint1() {return point1;}
    void setPoint1(Point val) {point1 = val;}

    Point getPoint2() {return point2;}
    void setPoint2(Point val) {point2 = val;}
  
    virtual void kill() {
        ((ModelBridge*)parent)->removeMember(this);
        delete this;
    }
};

#endif

